package org.lwd.datalink.service.impl;

import org.lwd.datalink.domain.task.TaskStatisticInfo;
import org.lwd.datalink.mapper.TaskStatisticMapper;
import org.lwd.datalink.service.TaskStatisticService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 同步任务性能统计
 *
 * @Author: weidong.lin
 * @Date: create in 2024/4/9 14:42
 */
@Service
public class TaskStatisticServiceImpl implements TaskStatisticService {

    @Resource
    private TaskStatisticMapper taskStatisticMapper;

    @Override
    public Boolean insert(TaskStatisticInfo taskStatisticInfo) {
        Integer num = taskStatisticMapper.insert(taskStatisticInfo);
        return num > 0;
    }
}
